import { Application } from "egg";
import { model } from "../../db";

export default function (app: Application) {
  const Platform = app.model.define(model.platform.table.toUpperCase(), {
    ...model.platform.columns,
    ...model.platform.virtuals
  });
  return Platform;
}
